<?php
/**
 * Create by 11li
 * Date 2020/2/26
 * Time 14:48
 *
 */

namespace app\api\controller\v1;


use app\common\controller\Api;
use app\common\service\ShippingService;

class Shipping extends Api
{
	
	/**
	 * 订单物流信息
	 */
	public function index() {
		$orderId = $this->request->get('order_id', '', 'intval');
		if(!$orderId || $orderId < 0) {
			$this->error('参数错误');
		}
		$service = new ShippingService();
		$res = $service->getOrderShipping($orderId);
		$this->success('查询成功', $res);
	}
}